package com.chuanke.ckfamily.service.common;


import com.chuanke.ckfamily.dao.user.model.User;
import com.chuanke.ckfamily.service.common.model.UserToken;

import java.util.Map;

/**
 * Created by wangbin on 2017/7/20.
 */
public interface TokenService {


    String createToken(User user, boolean cacheOld, boolean updatr) throws Exception;

    Map<String, Object> createToken(UserToken oldToken, boolean updatr) throws Exception;

    void cleanToken(UserToken token) throws Exception;

	UserToken getUserToken(String token);

}
